@import './transition.scss';
@import './element-ui.scss';
@import './color.scss';
*{
  box-sizing: inherit;
  padding: 0;
  margin: 0;
}
// 默认样式
body{
  @extend .color-default;
  background-color: #ffffff;
  font-size: 14px;
  overflow-x: hidden;
  font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
  ::placeholder {
    color: red;
  }
  box-sizing:border-box;
  a{
  }
  img{
    max-width: 100%;
  }
}

// 默认滚动条 start
::-webkit-scrollbar {
  width: 7px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 7px;
}
::-webkit-scrollbar-thumb {
  // 小方块
  border-radius: 4px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-track {
  // 轨道
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}
// 默认滚动条 end

// 单行超出部分文字显示...，必须设置width
.textOverflow {
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
  text-overflow:ellipsis;
  white-space: nowrap;
}

// flex布局
.flex {
  display: flex;
  flex-direction: column;
}
.flex_R {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.flex_jcsb{
  justify-content: space-between;
}
.flex_jcc{
  justify-content: center;
}
.flex_jcfe{
  justify-content: flex-end;
}
.flex_aic{
  align-items: center;
}
.flexC {
  display: inline-flex;
  flex-direction: column;
  .jcsb{
    @extend .flex_jcsb
  }
  .jcc{
    @extend .flex_jcc
  }
  .jcfe{
    @extend .flex_jcfe
  }
  .aic{
    @extend .flex_aic
  }
}
.flexR {
  display: inline-flex;
  flex-direction: row;
  @extend .flex_aic;
  .jcsb{
    @extend .flex_jcsb
  }
  .jcc{
    @extend .flex_jcc
  }
  .jcfe{
    @extend .flex_jcfe
  }
  .aic{
    @extend .flex_aic
  }
}
// 鼠标移入手形
.pointer {
  @extend .color-main;
  cursor: pointer;
  user-select: none;
  &:hover{
    color: #509EFF;
  }
}
// 16px圆角
.egg-br16{
  border-radius: 16px;
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
// 白色背景
.egg-white{
  background-color: white;
}

// 通用
.egg-box{
  box-shadow: rgb(145 158 171 / 24%) 0 0 2px 0, rgb(145 158 171 / 24%) 0 16px 32px -4px;
  @extend .egg-br16;
  @extend .egg-white;
}
// 通用 阴影更淡
.egg-box-small{
  box-shadow: rgb(145 158 171 / 24%) 0 0 2px 0, rgb(145 158 171 / 24%) 0 0 20px -4px;
  @extend .egg-br16;
  @extend .egg-white;
}

// 小于768= 适配移动端
@media (max-width: 768px) {
  .view-adaptation{
    margin: 0!important;
    &>.el-col{
      padding: 16px 0 0 0 !important;
      &:first-child{
        padding-top: 0;
      }
    }
  }
}
// 大于992
@media (min-width: 992px) {
  .view-adaptation{
    &>.el-col{
      padding-top: 24px;
    }
  }
}

// 头像上传控件 big
.upload-avatar-big{
  display: flex;
  flex-direction: column;
  align-items: center;
  .el-upload{
    width: 150px;
    height: 150px;
    .el-upload-dragger{
      width: inherit;
      height: inherit;
      border-radius: 50%;
    }
  }
  .el-upload__tip{
    margin-top: 20px;
  }
}
// 头像上传控件 small
.upload-avatar-small{
  display: flex;
  flex-direction: column;
  .el-upload{
    width: 100px;
    height: 100px;
    .el-upload-dragger{
      display: flex;
      flex-direction: column;
      justify-content: center;
      width: inherit;
      height: inherit;
      border-radius: 50%;
      .el-icon-upload{
        font-size: 1.8rem;
        margin: 0;
        line-height: inherit;
      }
    }
  }
  .el-upload__tip{
    margin-top: 5px;
  }
}